summaryrefslogtreecommitdiff
path: root/website/src/pages/blog/[...slug].astro
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-06-18 19:21:59 +0100
committerJoe Carstairs <me@joeac.net>2026-06-18 19:21:59 +0100
commitca8e6824eaa711105f4092365792720c9dde026b (patch)
tree2b6493941352d11b799ee63d3f1311c13de649b8 /website/src/pages/blog/[...slug].astro
parenta0f25057283a397f006127b6f582d190d2c4294e (diff)
remove Astro website
Diffstat (limited to 'website/src/pages/blog/[...slug].astro')
-rw-r--r--website/src/pages/blog/[...slug].astro28
1 files changed, 0 insertions, 28 deletions
diff --git a/website/src/pages/blog/[...slug].astro b/website/src/pages/blog/[...slug].astro
deleted file mode 100644
index 54cf9ac..0000000
--- a/website/src/pages/blog/[...slug].astro
+++ /dev/null
@@ -1,28 +0,0 @@
----
-import { type CollectionEntry, getCollection, render } from 'astro:content';
-import BlogPost from '../../layouts/BlogPost.astro';
-import { renderGemtextToHtml } from '../../renderGemtextToHtml';
-
-export async function getStaticPaths() {
- const posts = await getCollection('blog');
- return posts.map((post) => ({
- params: { slug: post.id },
- props: post,
- }));
-}
-type Props = CollectionEntry<'blog'>;
-
-const post = Astro.props;
-const Content = post.filePath?.endsWith('.gmi')
- ? renderGemtextToHtml(post.body ?? '', post.data.title)
- : (await render(post)).Content;
----
-
-<BlogPost
- title={post.data.title}
- description={post.data.description}
- pubDate={post.data.pubDate ?? new Date(post.id)}
- updatedDate={post.data.updatedDate}
->
- { post.filePath?.endsWith('.gmi') ? <Fragment set:html={Content}></Fragment> : <Content />}
-</BlogPost>